<style></style>
<template>
  <div>
      <div><h3>新增商品</h3></div>
    <div>
      <el-form
        :model="userForm"
        status-icon
        :rules="rules"
        ref="userForm"
        label-width="100px"
        class="demo-ruleForm"
      >
        <el-form-item label="商品名称" prop="pName">
          <el-input type="text" v-model="prodObj.pName" autocomplete="off"></el-input>
        </el-form-item>
        <el-form-item label="商品类型" prop="Ptype">
          <el-input type="text" v-model="prodObj.Ptype" autocomplete="off"></el-input>
        </el-form-item>
        <el-form-item label="商品价格" prop="price">
          <el-input type="text" v-model="prodObj.price" autocomplete="off"></el-input>
        </el-form-item>
        <el-form-item label="商品剩余数量" prop="gender">
          <el-input type="text" v-model="prodObj.gender" autocomplete="off"></el-input>
        </el-form-item>
        <el-form-item label="商品总数量" prop="sum">
          <el-input type="text" v-model="prodObj.sum" autocomplete="off"></el-input>
        </el-form-item>
        <el-form-item label="商品图片" prop="img">
          <el-input type="text" v-model="prodObj.img" autocomplete="off"></el-input>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" @click="submitForm('userForm')">提交</el-button>
          <el-button @click="resetForm('userForm')">重置</el-button>
        </el-form-item>
      </el-form>
    </div>
  </div>
</template>
<script>
export default {
    data(){
        return {
            prodObj:{

            }
        }
    },
};
</script>